body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #333;
}

.top-nav {
  width: 100%;
  height: 60px;
  margin: 0 auto;
  background-color: #f8f9fa;
  padding: 10px;
  display: flex;
  align-items: center;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 20px;
  height: auto;
  width: auto;
  margin: 0 auto;
  padding: 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  min-width: 200px;
}

.nav-item img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
}

.nav-item a {
  margin: 0 5px;
  color: #007bff;
  text-decoration: none;
}

.nav-item a:hover {
  text-decoration: underline;
}

header {
  background-color: #333;
  color: white;
  padding: 1.625rem;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: space-around;
}

.dropdown-menu {
  position: absolute;
  background-color: #eebc15;
  padding: 0;
  margin: 0;
  display: none;
  z-index: 2;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  padding: 0.5rem 1rem;
  position: sticky;
}

.dropdown-menu a {
  color: white;
  text-decoration: none;
  position: sticky;
}

nav a {
  color: white;
  text-decoration: none;
}
.products_m {
  width: 1600px;
  background-color: white;
  height: 400px;
  margin: 0 auto;
  text-align: center;
  color: black;
}

.products_m1 {
  width: 1600px;
  background-color: white;
  height: 400px;
  margin: 0 auto;
  text-align: center;
}
  
  


.hero {
  background-color:  rgba(255,255,255,0.5);
  background-size: cover;
  background-position: center;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.btn {
  background-color: #007bff;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  padding: 1.625rem;
}

.product-item {
  padding: 1.625rem;
  text-align: center;
}

footer {
  background-color: #f8f9fa;
  color: #333;
  text-align: center;
  padding: 1.625rem;
  max-width: 1600px;
  margin: 0 auto;
}

.footer-row {
  text-align: left;
  justify-content: flex-start;
}
.slider {
    width: 100%;
    height: 600px;
    overflow: hidden;
    position: relative;
    z-index: 1;

    
  }
  
  /* 图片轨道 */
  .slides {
    display: flex;
    width: 500%; /* 5张图片×100% */
    height: 100%;
    transition: transform 0.5s ease;
    background-color: #333;
  }
  
  /* 每张图片 */
  .slide {
    width: 20%; /* 100%/5张 */
    height: 100%;
      position: relative;
  }
  
 
  
  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* 导航点 */
  .dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
  }
  
  .dot {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
  }
  
  .dot.active {
    background: white;
  }
  .container {
    max-width: 1600px;
    margin: 0px auto 0 auto;
    padding: 30px;
}

/* 图片行 */
.image-row {
    display: flex;
    width: 1600px; /* 图片宽度 */
    justify-content: space-between;
    gap: 0px; /* 图片间距 */
    margin-bottom: 10px;
    margin-top: 30px;
    margin: 0 auto 0 auto;
    padding: 0px;
}

/* 单个图片容器 */
.image-container {
    flex: 1;
    text-align: center;
    margin: 0px auto 0 auto;

}

/* 图片样式 */
.image-container img {
    width: 80%;
    height: auto;
    /*max-height: 500px;  最大高度 */
    object-fit: cover;
    border-radius: 0px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.image-container img:hover {
    transform: scale(1.02);
}

/* 文字描述 */
.description {
  color: white;
  font-weight: bold;
  font-size: 36px;
    margin-top: 10px;
    padding: 0 10px;
    color: rgb(12, 12, 12);
    font-size: 36px;
    line-height: 1.5;
    text-align: left;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .image-row {
        flex-direction: column;
    }
    .image-container {
        margin-bottom: 20px;
    }
}

h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e74c3c;
}

h2 {
    color: #e74c3c;
    font-size: 1.8rem;
    margin-top: 30px;
}
.m_h3 {
  color: #f9f9fa;
  font-size: 2.5rem;
  text-align: center;
 
}

/* Why Choose Us 部分 */
.features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.feature {
    flex-basis: 30%;
    background: white;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-top: 0;
}

/* Who We Are 部分 */
.about-us {
    background: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 30px;
}

.team-member {
    flex-basis: 48%;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.company-info {
    margin-top: 30px;
    padding: 20px;
    background: #2c3e50;
    color: white;
    border-radius: 5px;
}

.read-more {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.read-more:hover {
    background: #c0392b;
}
.slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 40px;
    font-weight: bold;
  }
  .slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 20px auto;
}

/* 图片轨道样式 */
.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* 单个图片样式 */
.slider-item {
    width: 400px;
    height: 400px;
    flex-shrink: 0;
    object-fit: cover;
}

/* 自动滚动动画 */
@keyframes auto-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.auto-scroll {
    animation: auto-scroll 30s linear infinite;
}

.auto-scroll:hover {
    animation-play-state: paused;
    cursor: pointer;
}
input {
  width: 10%;
  
  margin-bottom: 10px;
  padding: 8px;
}
textarea {
  width: 100%;
  height: 100px;
  margin-bottom: 10px;
  padding: 8px;
}
button {
  padding: 10px 20px;
  background: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
}

